﻿using Sino.BankInfo;
using Sino.CapacityCloud.Repositories.Models;
using Sino.CapacityCloud.Services.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Sino.CapacityCloud.Services
{

    public interface IBankCardService
    {

        Task<string> FetchBankImageKeyAsync(string bankCode, bool checkUpdate = false);

        Task<IDictionary<string, string>> GetBankInfosAsync();

        Task<CardInfo> VerifyBankCardAsync(string accountName, string cardNumber);

        Task<BankCard> AddBankCardAsync(ApplicationUser user, string accountName, string bankCardNumber);

    }

}